package com.vcg.filter.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.vcg.filter.beans.BaseEntity;
import com.vcg.filter.beans.UserEntity;
import com.vcg.filter.service.AbstractService;

/**
 * @author fyq on
 * @created by 2016/5/31
 */
public class UserServiceImpl extends AbstractService {

    public UserEntity get(JSONObject jsonObject) {
        jsonObject = getJSON(jsonObject);
        return JSONObject.toJavaObject(jsonObject, UserEntity.class);
    }

    public void save(BaseEntity t) {
        dynamoDBMapper.save((UserEntity)t);
    }
}
